package com.epaylinks.serviceprovider.service;

import java.util.Date;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import org.apache.log4j.Logger;

@Component
public class MQSendService {
	
	private final Logger logger = Logger.getLogger(getClass());
	@Autowired
	private AmqpTemplate rabbitTempalte;
	public void send()
	{
		String context = "hello" +new Date();
		logger.info("Sender:"+context);
		rabbitTempalte.convertAndSend("hello", context);
	}

}
